package com.wpen.unit.cvt.system;

import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import com.wpen.unit.infra.mybatis.system.po.DictionaryPo;
import com.wpen.unit.web.dto.system.DictionaryListRequest;
import com.wpen.unit.web.dto.system.DictionaryListResponse;
import com.wpen.unit.web.dto.system.DictionaryListRowsResponse;
import com.wpen.unit.web.dto.system.DictionaryAddRequest;
import com.wpen.unit.web.dto.system.DictionaryAddResponse;
import com.wpen.unit.web.dto.system.DictionaryModRequest;
import com.wpen.unit.web.dto.system.DictionaryModResponse;

/**
 * 系统数据字典转换类
 * 
 * @author Wang Peng
 * @date 2022-12-23
 *
 */
@Mapper
public interface DictionaryCvt {
    DictionaryCvt INSTANCE = Mappers.getMapper(DictionaryCvt.class);

    DictionaryPo queryListDto2Do(DictionaryListRequest dictionaryListRequest);

    DictionaryListResponse queryListDo2Dto(DictionaryPo dictionaryPo);

    DictionaryListRowsResponse queryListRowDo2Dto(DictionaryPo dictionaryPo);


    DictionaryPo addDto2Do(DictionaryAddRequest dictionaryAddRequest);

    DictionaryAddResponse addDo2Dto(DictionaryPo dictionaryPo);


    DictionaryPo modDto2Do(DictionaryModRequest dictionaryModRequest);

    DictionaryModResponse modDo2Dto(DictionaryPo dictionaryPo);

}
